]> dgit.raspbian.org Git - gnome-shell.git/commit
style: Avoid trailing commas in array destructuring
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Jan 2019 19:20:09 +0000 (20:20 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 1 Jul 2019 21:44:11 +0000 (23:44 +0200)
commit55235c2552dacca02ddb2efd8b0b6f99f8840156
treec959613666ab70e52b2aae63c0bd9322fc6885d5
parentf2506433856c53dda07f623dfcfc89ee5132daee
style: Avoid trailing commas in array destructuring

When destructuring multiple return values, we often use trailing commas
to indicate that there are additional elements that we are ignoring.

There isn't anything inherently wrong with that, but it's a style that's
too confusing for eslint - on the one hand we require a space after a
comma, on the other hand we require no space before closing brackets.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/607
js/ui/dash.js
js/ui/iconGrid.js
js/ui/overviewControls.js
js/ui/status/keyboard.js
js/ui/switcherPopup.js